import { post } from "../utils/request";
var app = getApp();
//获取类目列表
export const getCategoryList = (params) => {
  return post(app.globalData.bnUri + 'menu/list', params);
};
    
//获取商品详情
export const getProductDetail = (params) => {
  // return post(app.globalData.apiUrl+'product/getProductDetail',params);
  return post(app.globalData.bnUri + 'goods/detail_all', params)
};

//获取商品sk
export const getProductVOList = (params) => {
  return post(app.globalData.bnUri+'goods/combines', params);
};

//获取爆款商品列表
export const getProductBySales = (params) => {
  return post(app.globalData.apiUrl+'homePage/getProductBySales',params);
};

//标签栏内商品列表
export const searchItems = (params) => {
  return post(app.globalData.bnUri + 'goods/search', params);
};